package top.minuy.structure.graph.cycle.directed;

import top.minuy.res.graph.GraphRes;
import top.minuy.structure.graph.representations.table.Graph;

/**
 * 有向图环检测
 *
 * @author Minuy
 * @time 9:21
 * @date 2021/11/27
 */
public class Test {
    public static void main(String[] args) {
        Graph g = new Graph(GraphRes.G_DIRECTED_CYCLE_DETECTION_01, true);
        DirectedCycleDetection dcd = new DirectedCycleDetection(g);
        System.out.println(dcd);

        Graph g2 = new Graph(GraphRes.G_DIRECTED_CYCLE_DETECTION_02, true);
        DirectedCycleDetection dcd2 = new DirectedCycleDetection(g2);
        System.out.println(dcd2);
    }
}
